<?php slot('registerNav', 'active') ?>

<div id="wrapper" class="register">
	<?php include_partial('global/systemMessages', array('form' => $form)) ?>

	<div id="content">
		<h1>Create your FREE account and join our exciting learning community!</h1>
		
		<br />

		<form class="register-form" action="<?php echo url_for('users/facebookmember') ?>" method="post">

			<h2><span>Required Fields</span></h2>
	
			<fieldset>
				<label for="user_username">Username</label>
					<?php echo $form['username']->render(array('class' => 'input-text')) ?>
				<label for="user_email">Email</label>
					<?php echo $form['email']->render(array('class' => 'input-text', 'value' => $form->getDefault('user[email]'))) ?>
			</fieldset>

			<fieldset class="agree-terms">
				<label class="check-box" for="user_tos_agreement">
					<?php echo $form['tos_agreement']->render() ?>
					<span>I have read and agreed to the <?php echo link_to('Terms of Service', 'site/terms', 'target="_blank"')?> for FinalsClub</span>
				</label>
				
				<label class="check-box" for="user_receive_email_updates">
					<?php echo $form['receive_email_updates']->render() ?>
					<span>Yes, I would like to receive occasional updates about FinalsClub</span>
				</label>
			</fieldset>

			<fieldset class="controls">
				<button class="btn_create-account " type="submit">Create your FREE account</button>
				<p>You must agree to the items above before you can create your account.</p>
				<?php echo link_to('Already have an account?', 'users/login') ?>
			</fieldset>
		</form>

	</div>
</div>